#include "../rtos/thread.h"
#include "../driver/conn_uart.h"
#include "../driver/motor.h"
#include "../service/cmd_recv.h"
#include "../utils/delay.h"
#include "../driver/num_led.h"

THREAD_INFO(App, 1024, osPriorityHigh1)
THREAD_INFO(Main, 1024, osPriorityHigh1)

static void app_main(void *_) {


    for (;;) {

        osDelay(10);
        delay_us(10);
    }
}

static void app_run(void *_) {
    delay_init();
    motor_init();
    conn_uart_init();
    num_led_init();
    

    conn_printf("app start:%d", 10 );

    Main_start(app_main, NULL);
    cmd_recv_loop();
}



void app_task_start() {
    App_start(app_run, NULL);
}





